<script>
	var url_address_full = "<?php echo $name = $_SERVER['HTTP_HOST'].$url = $_SERVER['REQUEST_URI'];?>";
</script>
<?php //echo phpfox::convertvnuf8('phạm hồng tiến');?>
<div id="mypost">
<div class="search_post_cat">

    <input type="text" name="" placeholder="Tìm kiếm câu hỏi theo danh mục" value="{$nameCategory}" id="search_idcat" onclick="ShowAllListCategory()"/>
    <p class="close_search_cat" onclick="CloseAllListCategory()">X</p>
    <!--
	<select name="" id="search_idcat" onchange="searchByCategory(document.getElementById('search_idcat').value)">
		{foreach from=$Category item = aCat}
            <option {$aCat.selected} value="{$aCat.category_id}">{$aCat.category_name}</option>
		{/foreach}
	</select>
 -->
 
    <div class="show_all_category">
        <ul class="ul_show_category">

        {foreach from=$Category item = aCat}

            <li class="block_cat {$aCat.cclass_firsr}">
                <p class="parent_cat"><a href="<?php echo phpfox::getParam('core.path');?>{$Link}{$aCat.category_id}">
					<img src="<?php echo phpfox::getParam('core.path');?>theme/frontend/default/style/default/image/icon/{$aCat.category_image}"/>
					{$aCat.category_name}
				</a></p>
                <ul>
                    {foreach from=$aCat.child_cat item = cCat}
                    <li class="cat_child">
						<img src="<?php echo phpfox::getParam('core.path');?>theme/frontend/default/style/default/image/icon/{$aCat.category_image}"/>
						<a href="<?php echo phpfox::getParam('core.path');?>{$Link}{$cCat.category_id}">{$cCat.category_name}</a>
					</li>
                    {/foreach}
                </ul>
            </li>
        {/foreach}


<!--
			<li class="block_cat">
                <p class="parent_cat"><a href="">asndv ahsvd asdas d asd asd</a></p>
                <ul>
                    <li class="cat_child"><a href=""> jasd asd asdasd a</a></li>
                    <li class="cat_child"><a href="">ajdg jasd asd asdasd a</a></li>
                    <li class="cat_child"><a href="">ajdg jasd asd asdasd a</a></li>
                    <li class="cat_child"><a href="">ajdg jasd asd asdasd a</a></li> 
                    <li class="cat_child"><a href="">ajdg jasd asd asdasd a</a></li>
                    <li class="cat_child"><a href="">ajdg jasd asd asdasd a</a></li>
                    <li class="cat_child"><a href="">ajdg jasd asd asdasd a</a></li>
                </ul>
            </li>
-->

<!--
            <li class="block_cat">
                <p class="parent_cat"><a href="">asndv ahsvd asdas d asd asd</a></p>
					<table class="cat_child">
						<tr>
							<td><a href="">jasd asd asdasd a</a></td>
							<td><a href="">jasd asd asdasd a</a></td>
							<td><a href="">jasd asd asdasd a</a></td>
							<td><a href="">jasd asd asdasd a</a></td>
						</tr>
						<tr>
							<td><a href="">jasd asd asdasd a</a></td>
							<td><a href="">jasd asd asdasd a</a></td>
							<td><a href="">jasd asd asdasd a</a></td>
							<td><a href="">jasd asd asdasd a</a></td>
						</tr>
						<tr>
							<td><a href="">jasd asd asdasd a</a></td>
							<td><a href="">jasd asd asdasd a</a></td>
							<td><a href="">jasd asd asdasd a</a></td>
							<td><a href="">jasd asd asdasd a</a></td>
						</tr>
						<tr>
							<td><a href="">jasd asd asdasd a</a></td>
							<td><a href="">jasd asd asdasd a</a></td>
							<td><a href="">jasd asd asdasd a</a></td>
							<td><a href="">jasd asd asdasd a</a></td>
						</tr>
					</table>
            </li>		
-->
			

			
            
        </ul>
    
    
        
    </div>

</div>
<div class="clear"></div>


<ul class="ul_mypost">
{foreach from=$list_cauhoi item=aCauhoi}
	<li class="child_mypost" title="{$aCauhoi.title}">
		<div class="postinfo">
			<h3 class="title_post">
				<a href="<?php echo phpfox::getParam('core.path');?>hoidap/{$aCauhoi.cauhoi_id}" title="{$aCauhoi.title}">
					{$aCauhoi.title_short}
				</a>
			</h3>
			<p class="member_post">
				<span class="name_post"><a href="" title="" target="_blank">{$aCauhoi.full_name}</a></span>, 
				<span class="time_post">{$aCauhoi.time_stamp|convert_time:'feed.feed_display_time_stamp'}</span>
			</p>
			<!--<p class="id_post">ID Câu hỏi: {$aCauhoi.cauhoi_id}</p>-->
		</div>
		<div class="detail_post">
			<!--<p class="time_post">Thời gian cập nhật:<br />{$aCauhoi.time_update|convert_time:'feed.feed_display_time_stamp'}</p>-->
			<p class="privacy_post">Riêng tư: <span style="color:#124B7C">Public</span></p>
			<p class="cat_post">Loại câu hỏi: <a style="color:#124B7C" href="<?php echo phpfox::getParam('core.path');?>hoidap/category/{$aCauhoi.category_id}">{$aCauhoi.category_name}</a></p>
		</div>
		<div class="interact_post">
			<p class="view_post">View : {$aCauhoi.total_view}</p>
			<p class="like_post">Like : {$aCauhoi.total_like}</p>
			<p class="comment_post">Comment : {$aCauhoi.total_comment}</p>
		</div>
	</li>
{/foreach}
    <!--
	<li class="child_mypost" title="">
		<div class="postinfo">
			<h3 class="title_post">
				<a href="" title="">
					Cho thuê nhà nguyên căn Bình Thạnh gần Hàng Xanh
				</a>
			</h3>
			<p class="member_post">
				<span class="name_post"><a href="" title="" target="_blank">Tien Pham Hong</a></span>, 
				<span class="time_post">05/04/2013</span>
			</p>
			<p class="id_post">ID Câu hỏi: 12345678</p>
		</div>
		<div class="detail_post">
			<p class="time_post">Thời gian cập nhật: 04/04/2013</p>
			<p class="privacy_post">Riêng tư: Public</p>
			<p class="cat_post">Loại câu hỏi: Mua sắm</p>
		</div>
		<div class="interact_post">
			<p class="view_post">View : 12345</p>
			<p class="like_post">Like : 12345</p>
			<p class="comment_post">Comment : 1234</p>
		</div>
	</li>
	-->
</ul>

<div class="page_cauhoi">
    Có <b>{$SoLuongCauHoi}</b> câu hỏi được tìm thấy.
    <ul class="ul_page">
        {foreach from=$page item=aPage}
            <li {$aPage.selectedPage}><a href="{$aPage.linkPage}">{$aPage.numPage}</a></li>
        {/foreach}
        
    </ul>
    <span style="float: right; margin: 10px 10px 0 0;">{$pageActive}</span>
</div><!--End .page_cauhoi-->


<!--
<div class="page_cauhoi">
    <ul class="ul_page">
        <li><a href="">Đầu tiên</a></li>
        <li><a href=""><</a></li>
        <li><a href="">1</a></li>
        <li class="page_selected"><a href="">1</a></li>
        <li><a href="">1</a></li>
        <li><a href="">></a></li>
        <li><a href="">Cuối cùng</a></li>
    </ul>
</div><!--End .page_cauhoi-->

</div>